package newPan3d.content.tree.luoye
{
	import _Pan3D.program.Shader3D;
	
	public class LuoYeShader extends Shader3D
	{
		public static var LUO_YE_SHADER:String = "LUO_YE_SHADER";
		public function LuoYeShader()
		{
			vertex = 
				"mov vt0,va0 \n"+
				"mov vt2,vc8 \n"+
				"mov vt4,va2 \n"+
				
				"m44 vt0,vt0, vc4 \n" +
				
				//"mul vt4.y,vt4.y vt0.y \n"+
				
				"add vt2.x,vt4.w,vt2.x \n"+
				"mul vt4.y,vt4.y,vt2.x \n"+
				
				
				"frc vt4.y,vt4,y \n"+
			    "mul vt4.y,vt4.y,vt2.w \n"+
				
				"sub vt0,vt0, vt4 \n"+
				"m44 vt0, vt0, vc0 \n" +
				
				"mov op, vt0 \n" +
				"mov v0, va1";
			fragment =
				
				"tex ft0, v0, fs0 <2d,clamp,repeat>\n"+
				"mov oc, ft0";
		}
	}
}